package com.local.service.face;

import java.util.Date;
import java.util.List;

import com.cz073586.common.billRules.entitys.vo.ParkBillingRuleForOneDayVo;
import com.local.model.CarParkIn;
import com.local.model.LocalChargeBytimeCopy;
import com.local.model.LocalChargeBytimeCopyExample;
import com.qianhai.common.service.face.BaseService;

public interface LocalChargeByTimeCopyService
		extends
		BaseService<LocalChargeBytimeCopyExample, LocalChargeBytimeCopy, String>
{
	
	String saveOrUpdateParkwellMember(
			LocalChargeBytimeCopy localChargeByTimeCopy, CarParkIn carParkIn);
	
	// double queryCarinBillMoney(String carInUuid,Date carInTime,Date
	// carOutTime);
	
	// 放入引擎和，进场，出场时间，获取费用，从内存中计算
	double queryRuleForOneDay(ParkBillingRuleForOneDayVo pRuleBill,
			Date carInTime, Date carOutTime);
	
	// 通过进场车辆ID，获取到计费引擎
	// ParkBillingRuleForOneDayVo queryParkBillingRule(String carInUuid);
	
	List<LocalChargeBytimeCopy> saveRuleCopy();
	
	// 把计费规则，放入副本表
	List<LocalChargeBytimeCopy> addRuleCopy(CarParkIn carParkIn);
	
	// 把计费副本规则，上传到云端
	void setRuleUploadCopy(List<LocalChargeBytimeCopy> li);
}
